var lsy = 'ABCDEFGabbed'
var big = 0

var little = 0

for (var a = 0; a < lsy.length; a++) {
  var code = lsy.charCodeAt(a)
  if (code >= 65 && code <= 90) {
    big++
  } else {
    little++
  }
 
}
console.log(big,little)
